package cn.selfiot.iotman.model.mqtt.ssl;

/**
 * 自签名证书
 *
 * @author hugo
 * @since 2020/8/1
 */
public class SelfSignedCertModel {
    private String caFile;
    private String clientCertFile;
    private String clientKeyFile;
    private String clientKeyPwd;
    private boolean pemFormatted = true;
    
    public String getCaFile() {
        return caFile;
    }
    
    public void setCaFile(String caFile) {
        this.caFile = caFile;
    }
    
    public String getClientCertFile() {
        return clientCertFile;
    }
    
    public void setClientCertFile(String clientCertFile) {
        this.clientCertFile = clientCertFile;
    }
    
    public String getClientKeyFile() {
        return clientKeyFile;
    }
    
    public void setClientKeyFile(String clientKeyFile) {
        this.clientKeyFile = clientKeyFile;
    }
    
    public String getClientKeyPwd() {
        return clientKeyPwd;
    }
    
    public void setClientKeyPwd(String clientKeyPwd) {
        this.clientKeyPwd = clientKeyPwd;
    }
    
    public boolean isPemFormatted() {
        return pemFormatted;
    }
    
    public void setPemFormatted(boolean pemFormatted) {
        this.pemFormatted = pemFormatted;
    }
    
    @Override
    public String toString() {
        return "SelfSignedCertModel{" +
                "caFile='" + caFile + '\'' +
                ", clientCertFile='" + clientCertFile + '\'' +
                ", clientKeyFile='" + clientKeyFile + '\'' +
                ", clientKeyPwd='" + clientKeyPwd + '\'' +
                ", pemFormatted=" + pemFormatted +
                '}';
    }
}
